package com.four.collage.service.impl;

import com.four.collage.entity.Groupmember;
import com.four.collage.dao.GroupmemberMapper;
import com.four.collage.service.IGroupmanageService;
import com.four.collage.service.IGroupmemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-12-18
 */
@Service
public class GroupmemberServiceImpl extends ServiceImpl<GroupmemberMapper, Groupmember> implements IGroupmemberService {

    @Autowired
    private GroupmemberMapper groupmemberMapper;

    /**
     * 根据拼团管理id查询拼团人员记录表
     * @param groId
     * @return
     */
    @Override
    public List<Groupmember> getGroupmemberByGroId(Integer groId) {
        return groupmemberMapper.getGroupmemberByGroId(groId);
    }
}
